<template>
  <view class="container">
    <image class="bg" src="/static/images/bg.png" mode="widthFix"></image>
    <!-- 顶部组件 -->
    <u-navbar
      id="nav-bar"
      :is-back="true"
      :background="{ background: 'transparent' }"
      :border-bottom="false"
      title="星辉兑换"
    ></u-navbar>
    <view class="content">
      <view class="dataBox">
        <image
          class="dataBox-bg"
          src="/static/images/xhdh_bg.png"
          mode="widthFix"
        ></image>
        <view class="dataBox-content">
          <view class="header">
            <view class="value">12,999,999.00</view>
            <view class="label">本月团队交易额(万元)</view>
          </view>
          <view class="bottom">
            <view class="item text-align-left">
              <view class="value">0</view>
              <view class="label">今日激活商户</view>
            </view>
            <view class="item text-align-center">
              <view class="value">456,574.21</view>
              <view class="label">今日团队交易(元)</view>
            </view>
            <view class="item text-align-right">
              <view class="value" style="text-align: right">51</view>
              <view class="label">今日新增服务商</view>
            </view>
          </view>
        </view>
      </view>

      <view class="list">
        <view class="item">
          <image
            class="img"
            src="/static/images/icon-frqb.png"
            mode="widthFix"
          ></image>
          <view class="info">
            <view class="price"><text class="unit">¥</text>17669.91</view>
            <view class="label">分润钱包</view>
          </view>
          <view class="btns">
            <view class="btn" @click="navigateTo('/pages/home/loanWallet')">明细</view>
            <view class="spe"></view>
            <view class="btn" @click="navigateTo('/pages/my/applicationForPublicWithdrawal')">提现</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url: url,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  min-height: 100vh;
  padding: 30rpx;
  text-align: center;
  background-color: #f5f5f5;
  .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
}

.content {
  width: 100%;
  background-color: transparent;
  overflow: hidden;
  .dataBox {
    position: relative;
    margin-top: 30rpx;
    width: 100%;
    .dataBox-bg {
      width: 100%;
      height: auto;
    }
    .dataBox-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      padding: 70rpx 30rpx 50rpx;
      line-height: 1;
      .header {
        width: 100%;
        .value {
          font-family: DIN, sans-serif;
          font-weight: bold;
          font-size: 48rpx;
          color: #ffeacc;
          text-align: left;
        }
        .label {
          margin-top: 10rpx;
          font-family: PingFang SC, sans-serif;
          font-weight: 400;
          font-size: 24rpx;
          color: rgba($color: #ffffff, $alpha: 0.5);
          text-align: left;
        }
      }
      .bottom {
        display: flex;
        justify-content: space-between;
        margin-top: 40rpx;
        .item {
          flex: 1;
          min-width: 0;
          .value {
            font-family: DIN, sans-serif;
            font-weight: bold;
            font-size: 32rpx;
            color: #ffeacc;
          }
          .label {
            margin-top: 10rpx;
            font-family: PingFang SC, sans-serif;
            font-weight: 400;
            font-size: 22rpx;
            color: rgba($color: #ffffff, $alpha: 0.5);
          }
        }
      }
    }
  }

  .list {
    width: 100%;
    background: transparent;
    overflow: hidden;
    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 30rpx;
      width: 100%;
      padding: 30rpx;
      background: #ffffff;
      border-radius: 16rpx;
      .img {
        width: 48rpx;
        min-width: 0;
      }
      .info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: 15rpx;
        .price {
          width: 100%;
          font-family: DIN;
          font-weight: bold;
          font-size: 36rpx;
          color: #333333;
          text-align: left;
          .unit {
            font-family: DIN;
            font-weight: bold;
            font-size: 24rpx;
            color: #333333;
          }
        }
        .label {
          margin-top: 15rpx;
          width: 100%;
          font-weight: 500;
          font-size: 24rpx;
          color: #999999;
          text-align: left;
        }
      }
      .btns {
        display: flex;
        justify-content: center;
        align-items: center;
        .btn {
          font-family: PingFang SC;
          font-weight: 500;
          font-size: 24rpx;
          color: #b7926e;
        }
        .spe {
          margin: 0 20rpx;
          width: 2rpx;
          height: 23rpx;
          background-color: #b7926e;
        }
      }
    }
  }
}
</style>
